From edf0aeb92e5bdcde834a40698a87b1e74d424fda Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Sun, 9 Jul 2017 10:02:34 +0200 Subject: [PATCH] gtkapplication: g_dbus_proxy_new_sync can return NULL Specifically, in the case where @error is set. --- gtk/gtkapplication-dbus.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkapplication-dbus.c b/gtk/gtkapplication-dbus.c index 3ad964ee57..be88565216 100644 --- a/gtk/gtkapplication-dbus.c +++ b/gtk/gtkapplication-dbus.c @@ -131,6 +131,9 @@ gtk_application_get_proxy_if_service_present (GDBusConnection *connection, NULL, error); + if (!proxy) + return NULL; + /* is there anyone actually providing the service? */ owner = g_dbus_proxy_get_name_owner (proxy); if (owner == NULL) -- 2.30.2